<template>
    <div class="moreMain">
        <div class="back" @click="$router.go(-1)">返回</div>
        <div class="moreList">
            <div class="item-box" @click="goList" v-for="(item, index) in cardList" :key="index">
                <div class="item-con">
                    <div style="width: 100%;">
                        <div class="content">{{ item.name }}</div>
                        <div class="num">
                            <span style="font-size: 24px;">{{ item.expert_num }}</span>
                            人
                        </div>
                    </div>

                </div>


            </div>

        </div>
    </div>
</template>

<script>
export default {
    name: 'moreList',
    data() {
        return {
            cardList: []

        };
    },
    created() {
    },
    mounted() {
        this.initCard()
    },
    methods: {
        // 列表
        initCard() {
            this.$get(this.$Url.people.banks).then(res => {
                this.cardList = res.data || []
            })

        },
        goList() {
            this.$router.push({
                path: '/PD/talentList',
                query: {
                    type: 'talentList'
                }
            })
        },
    },

};
</script>
<style lang="scss" scoped>
.moreMain {
    padding: 20px 50px;
    width: 100%;


    .back {
        width: 100%;
        text-align: right;
        cursor: pointer;
    }

    .moreList {
        // display: flex;
        // align-items: center;
        width: 100%;
        // flex-wrap: wrap;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        grid-gap: 20rpx 20rpx;
        justify-content: space-between;
        // grid-template-columns: repeat(auto-fill, 200rpx);

        .item-box {
            // width: 18%;
            height: 170px;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
            background: url("../../../../assets/card.png");
            background-size: cover;
            background-repeat: no-repeat;
            border-radius: 8px;
            margin: 10px 18px;
            cursor: pointer;

            .item-con {
                width: 100%;
                padding: 15px 25px;
                padding-top: 75px;
                display: flex;
                align-items: center;
                justify-content: center;

                .content {
                    color: #211F26;
                    font-size: 18px;
                    font-weight: 500;
                    font-family: PingFang SC, PingFang SC;
                    line-height: 24px;
                    margin-bottom: 10px;
                    width: 100%;
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;

                }

                .num {
                    color: $mainColor;
                    font-size: 24px;
                    font-family: MiSans, MiSans;
                    line-height: 20px;
                }
            }


        }

        .item-box:hover {
            // width: 18%;
            height: 170px;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
            background: url("../../../../assets/cardHover.png");
            background-size: cover;
            background-repeat: no-repeat;
            border-radius: 8px;
            transform: scale(1.01);
            transition: all .4s;

        }

    }

}
</style>